﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MonsterEngine.Interfaces;
using MonsterEngine.Managers;
using MonsterEngine.Types;

namespace MonsterEngine.Abilities
{
    public class HealthSteal:IAbilities
    {
        public AbilityType AbilityType
        {
            get;
            set;
        }
        public string Name
        {
            get;
            set;
        }
        public string Description { get; set; }
        public int BasePoint
        {
            get;
            set;
        }
        public int AbilityKey
        {
            get;
            set;
        }
        private IFightable _abilityTarget;
        public IFightable AbilityTarget
        {
            get { return _abilityTarget; }
            set { _abilityTarget = value; }
        }
        private DamageType _damageType;
        public DamageType DamageType
        {
            get { return _damageType; }
            set { _damageType = value; }
        }
        public DamageManager AbilityDamageManager
        {
            get;
            set;
        }

        public void DoAbility()
        {
            Console.WriteLine("Sucking damage harder...");
            int suckAmount = AbilityDamageManager.DoRandomDamage();
            int modAmount = AbilityDamageManager.DamageCounter(suckAmount, _damageType);
            PlayerManager.Player1.HitPoints += modAmount;
            Console.WriteLine(PlayerManager.Player1.Name + " was healed for " + modAmount);
        }
    }
}
